<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../link/heat.jsp" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/bootstrap.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/addBook.css"/>
    <script type="text/javascript" src="${pageContext.request.contextPath }/static/js/ajaxfileupload.js"></script>
</head>
<body>
<!--取出上一个页面上带来的page的值-->


<div id="addAll">
    <div id="nav">
        <p>添加汽车入库信息</p>
    </div>
    <%-- String carLogo;String carNumber;carTime;carZuo;carColor; carPrice; carPhoto; carStatus;--%>
    <div id="table">
        <form action="${pageContext.request.contextPath}/carCheck/update.action"
              method="post" id="myform">
            <input type="hidden" name="carCheckId" value="${requestScope.carCheck.carCheckId}">
            <table>
                <%--     、 private String carInId;、

    private String carOutId;

    private String carCheckId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date carInTime;

    private Double carInOil;

    private Short carInMoney;

    private String carInFeedback;

    private String userId;

    private String carId;--%>

                <!--错误提示-->
                <tr class="three">
                    <td class="four"></td>
                    <td><span id="pnameerr"></span></td>
                </tr>
                <tr>
                    <td class="one">汽车编号</td>
                    <td><input type="text" name="carId" class="two" value="${requestScope.carCheck.carId}"></td>
                </tr>

                <tr>
                    <td class="one">检查单时间</td>
                    <td><input type="date" name="carCheckTime" class="two"
                               value="<fmt:formatDate value="${requestScope.carCheck.carCheckTime}" pattern="yyyy-MM-dd"/>">
                    </td>
                </tr>
                <tr>
                    <td class="one">描述</td>
                    <td><input type="text" name="carDescribe" class="two" value="${requestScope.carCheck.carDescribe}">
                    </td>
                </tr>
                <tr>
                    <td class="one">用户编号</td>
                    <td><input type="text" name="userId" class="two" value="${requestScope.carCheck.userId}" ></td>
                </tr>


                <tr>
                    <td>
                        <input type="submit" value="提交" class="btn btn-success">
                    </td>
                    <td>
                        <input type="reset" value="取消" class="btn btn-default" onclick="myclose()">
                        <script type="text/javascript">
                            function myclose() {
                                window.history.go(-1)
                            }
                        </script>
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>

</body>
</html>
